import request from '@/utils/request'

// 列表（上）
export const GetListAPI = params => {
    return request({
        url: '/production/degreas_output/list',
        method: 'GET',
        params
    })
}

// 产出
export const OutPutAPI = data => {
    return request({
        url: '/production/degreas_output/outPut',
        method: 'POST',
        data
    })
}

// 扫描入库
export const ScanInAPI = data => {
    return request({
        url: '/production/degreas_output/scanIn',
        method: 'POST',
        data
    })
}

// 废料打印
export const WastePrintAPI = data => {
    return request({
        url: '/production/degreas_output/wastePrint',
        method: 'POST',
        data
    })
}

// 单据完成
export const DocumentsFinishAPI = data => {
    return request({
        url: '/production/degreas_output/documentsFinish/' + data,
        method: 'GET'
    })
}

// 查看
export const GetViewAPI = data => {
    return request({
        url: '/production/degreas_output/getView/' + data,
        method: 'GET'
    })
}

// 脱脂产出下方明细列表
export const GetDetailListAPI = params => {
    return request({
        url: '/production/degreas_output_detail/list',
        method: 'GET',
        params
    })
}

// 下方数据查看
export const GetDetailViewAPI = data => {
    return request({
        url: '/production/degreas_output_detail/getView/' + data,
        method: 'GET'
    })
}

// 条码修正
export const CodeCorrectionAPI = data => {
    return request({
        url: '/production/degreas_output_detail/codeCorrection',
        method: 'POST',
        data
    })
}

// 产出统计
export const GetOutputStaticAPI = data => {
    return request({
        url: '/production/degreas_output/outputStatistics/' + data,
        method: 'GET'
    })
}